package lesson2.com.games.enums;

public class CardTester {
    
    public static void main(String[] args){
        PlayingCard pc = new PlayingCard(Suit.HEARTS, 3);
        System.out.println("the playing card denomination is "+pc.getDenomination());
        System.out.println("the plaing card suit is "+pc.getSuitText());
        
        //pc = new PlayingCard(-876, 10);
        //System.out.println("the playing card denomination is "+pc.getDenomination());
        //System.out.println("the plaing card suit is "+pc.getSuitText());
        
        Suit[] allSuits = Suit.values();
        for(Suit suit: allSuits){
            System.out.println("Name:" +suit.name());
            System.out.println("\tOrdinal: "+suit.ordinal());
        }
        
        Suit suit = Suit.valueOf("CLUBS");
        //System.out.println("The name of the suit that has a valueOf 'CLUBS' is  "+suit.name());
       // suit = Suit.valueOf("Happy");
        
        switch(suit){
            case HEARTS: // yada
                break;
            case SPADES: // yeada
                break;
        }
       
    }

}
